package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ServiceOrganizationMapper;
import com.zch.dao.model.ServiceOrganization;
import com.zch.dao.model.ServiceOrganizationExample;
import com.zch.daoEx.ServiceOrganizationMapperEx;
import com.zch.daoEx.model.ServiceOrganizationEx;

@Service
public class ServiceOrganizationService {
	@Autowired
	private ServiceOrganizationMapper serviceOrganizationMapper;
    @Autowired
    private ServiceOrganizationMapperEx serviceOrganizationMapperEx;

	public int countByExample(ServiceOrganizationExample example) {
		return this.serviceOrganizationMapper.countByExample(example);
	}

	public ServiceOrganization selectByPrimaryKey(String id) {
		return this.serviceOrganizationMapper.selectByPrimaryKey(id);
	}

	public List<ServiceOrganization> selectByExample(ServiceOrganizationExample example) {
		return this.serviceOrganizationMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.serviceOrganizationMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ServiceOrganization record) {
		return this.serviceOrganizationMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(ServiceOrganization record) {
		return this.serviceOrganizationMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ServiceOrganizationExample example) {
		return this.serviceOrganizationMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ServiceOrganization record, ServiceOrganizationExample example) {
		return this.serviceOrganizationMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(ServiceOrganization record, ServiceOrganizationExample example) {
		return this.serviceOrganizationMapper.updateByExample(record, example);
	}

	public int insert(ServiceOrganization record) {
		return this.serviceOrganizationMapper.insert(record);
	}

	public int insertSelective(ServiceOrganization record) {
		return this.serviceOrganizationMapper.insertSelective(record);
	}

    public List<ServiceOrganizationEx> selectList(Map<String, Object> map) {
        return this.serviceOrganizationMapperEx.selectList(map);
    }

    public List<ServiceOrganizationEx> selectFindMsgList(Map<String, Object> serOr) {
        return this.serviceOrganizationMapperEx.selectFindMsgList(serOr);
    }

}
